package zdream.pmfield.data.foe;

import java.util.Arrays;

/**
 * 告诉大家, 如果检定为 1 个成功时, 是 "成功" 还是 "失败",
 * 技能的威力是多少, 造成什么伤害;
 * 按照上面的说法, level=1
 *
 * LEVEL_MORE 用在什么地方呢, 比如一共有 3 个判定点
 * 如果判定 4 个或更多, 每比 3 多 1 个成功点, 增加判定 1 次 level=LEVEL_MORE
 *
 * @author Zdream
 * @date 2023-11-09
 * @since 0.0.1
 */
public class MoveCheckPair {
	public static final byte LEVEL_MORE = -1;
	public byte level;

	public static final byte RESULT_MAJOR_FAILURE = 0;
	public static final byte RESULT_FAILURE = 1;
	public static final byte RESULT_SUCCESS = 2;
	public static final byte RESULT_MAJOR_SUCCESS = 3;
	public byte result;

	public int power;

	/**
	 * 附加效果
	 */
	public String[] additions;

	public MoveCheckPair copy() {
		MoveCheckPair next = new MoveCheckPair();
		next.level = this.level;
		next.result = this.result;
		next.power = this.power;
		if (this.additions != null) {
			next.additions = Arrays.copyOf(additions, additions.length);
		}
		return next;
	}
}
